#!/bin/bash

function do_cmake() {
    local srcDir="$1"
    local dn=$2[@]
    local ds=(${!dn})

    dss=""
    for d in "${ds[@]}" 
    do
       dss="${dss} -D${d}"
    done

    echo cmake "${dss}" "${srcDir}"
    cmake "${dss}" "${srcDir}"
}

